﻿using System;
using Terraria.UI;

namespace Terraria.GameContent.UI.States
{
	// Token: 0x020003D7 RID: 983
	public class UISortableElement : UIElement
	{
		// Token: 0x060022F0 RID: 8944 RVA: 0x00018A87 File Offset: 0x00016C87
		public UISortableElement(int index)
		{
			this.OrderIndex = index;
		}

		// Token: 0x060022F1 RID: 8945 RVA: 0x00473EF0 File Offset: 0x004720F0
		public override int CompareTo(object obj)
		{
			UISortableElement uisortableElement = obj as UISortableElement;
			if (uisortableElement != null)
			{
				return this.OrderIndex.CompareTo(uisortableElement.OrderIndex);
			}
			return base.CompareTo(obj);
		}

		// Token: 0x04003F4C RID: 16204
		public int OrderIndex;
	}
}
